package org.jeecg.modules.stocktake.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 盘点
 * @Author: jeecg-boot
 * @Date: 2024-06-28
 * @Version: V1.0
 */
@Data
@TableName("stocktake")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "stocktake对象", description = "盘点")
public class Stocktake implements Serializable {
    private static final long serialVersionUID = 1L;

    /**主键*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**更新日期*/
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
    /**品番编码*/
    @Excel(name = "品番编码", width = 15)
    @ApiModelProperty(value = "品番编码")
    private String skuCode;
    /**品番名称*/
    @Excel(name = "品番名称", width = 15)
    @ApiModelProperty(value = "品番名称")
    private String skuName;
    /**所属库区*/
    @Excel(name = "入库库区", width = 15, dictTable = "basic_warehouse", dicText = "warehouse_name", dicCode = "warehouse_code")
    @Dict(dictTable = "basic_warehouse", dicText = "warehouse_name", dicCode = "warehouse_code")
    @ApiModelProperty(value = "入库库区")
    private String area;
    /**货架位置*/
    @Excel(name = "货架位置", width = 15)
    @ApiModelProperty(value = "货架位置")
    private String location;
    /**库存数量*/
    @Excel(name = "库存数量", width = 15)
    @ApiModelProperty(value = "库存数量")
    private Integer number;
    /**盘点数量*/
    @ApiModelProperty(value = "盘点数量")
    private Integer stocktakeNum;
    /**相差数量*/
    @ApiModelProperty(value = "相差数量")
    private Integer disparityNum;
    /**备注*/
    @ApiModelProperty(value = "备注")
    private String remarks;
    /**状态*/
    @ApiModelProperty(value = "状态")
    private Integer status;
    /**盘点日期*/
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "盘点日期")
    private Date stocktakeDate;
    /**确认日期*/
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "确认日期")
    private Date confirmDate;
    /**操作人*/
    @ApiModelProperty(value = "操作人")
    private String operateUser;
    /**确认人*/
    @ApiModelProperty(value = "确认人")
    private String confirmUser;
    /**工作站id*/
    @ApiModelProperty(value = "工作站id")
    private String stationCode;
}
